import React from 'react';
import {Link,HashRouter as Router, Route,Switch} from 'react-router-dom';
import About from './About';
import Info from './Info';
import Main from './Main';
import Home from './Home';

export default class IRouter extends React.Component{
    render(){
        return (
            <Router>
                <Main>
                    <Route path="/home" component={Home}></Route>
                    <Route path="/info" component={Info}></Route>
                    <Route path="/about" component={About}></Route>
                </Main>
            </Router>
        )
    }
}